package com.shopUser.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.shopUser.bean.User;
import com.shopUser.feign.factory.UserFactory;

import shopBean.common.bean.RestResult;


@FeignClient(value="service-shopUser",fallbackFactory=UserFactory.class)
public interface UserFeign {
	@RequestMapping("/user/getByAccount.api")
	public RestResult<User> getByAccountApi(@RequestParam(value="account")String account);
	
	@RequestMapping("/user/get.api")
	public RestResult<User> get(@RequestParam(value="id")String id);
}
